package com.hou.springmq.mq.consumer.topic;

import org.springframework.stereotype.Component;

import javax.jms.Message;
import javax.jms.MessageListener;

@Component
public class TopicReceiver02 implements MessageListener {
    @Override
    public void onMessage(Message message) {
        System.out.println("2号消费者接受到订阅的消息:"+message.toString());
    }
}
